home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
et
/
et3_0-a1.lha
/
et3
/
src
/
PttyConnection.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-27
|
999b
|
46 lines
#ifndef PttyConnection_First
#ifdef __GNUG__
//pragma once
#pragma interface
#endif
#define PttyConnection_First
#include "Types.h"
//---- abstract class for a connection with a pseudo tty ---------------------
struct PttyChars { // struct to return the settings of the various tty characters
char erase;
char kill;
char rprnt;
char susp;
char intr;
char quit;
char eof;
};
class PttyConnection {
#ifdef __GNUG__
char *dummy;
#endif
protected:
PttyConnection();
public:
virtual ~PttyConnection();
virtual FILE *GetFile();
virtual int GetPid();
virtual int GetFileNo();
virtual bool SubmitToSlave(char *buf, int n);
virtual int Read(char *buf, int size);
virtual int GetMode();
virtual void KillChild();
virtual void CleanupPtty();
virtual bool Echo();
virtual bool RawOrCBreak();
virtual void BecomeConsole();
virtual void SetSize(int rows, int cols);
virtual void GetPttyChars(PttyChars *);
};
#endif